- unless resource.errors.blank?
  .form_errors
    Your details were not completed correctly.  Please correct the following fields to register:
    %ul
      - resource.errors.full_messages.each do |error|
        %li
          = error
%p
  = f.label :name, 'Full name'
  %br/
  = f.text_field :name
%p
  = f.label :email
  %br/
  = f.text_field :email
%p
  = f.label :password
  -if user.new_record?
    %i (try and choose a password that is not easily guessable)
  -else
    %i (leave blank if you do not wish to change your password)
  %br/
  = f.password_field :password
%p
  = f.label :password_confirmation
  -if user.new_record?
    %i (helps ensure you have not made a mistake)
  -else
    %i (required if changing your password)
  %br/
  = f.password_field :password_confirmation
